package com.cloudeasy.provider.model.enums;

/**
 * Create By 郭金宝 on 2019/1/14.<br>
 */
public enum MqMessageTypeEnum {
    /**
     * 生产者.
     */
    PRODUCER_MESSAGE(10, "生产者"),
    /**
     * 消费者.
     */
    CONSUMER_MESSAGE(20, "消费者");

    private int messageType;

    private String value;

    MqMessageTypeEnum(int messageType, String value) {
        this.messageType = messageType;
        this.value = value;
    }

    /**
     * Message type int.
     *
     * @return the int
     */
    public int messageType() {
        return messageType;
    }

    /**
     * Value string.
     *
     * @return the string
     */
    public String value() {
        return value;
    }

}